package com.origin.netlibrary.bean;

import java.util.HashMap;

import okhttp3.Protocol;

public class BaseResponse {
    private int code;
    private HashMap<String, String> headerMap = new HashMap<>();
    private String formatJson;
    private String message;
    private Protocol protocol;
    private String mediaType;

    public String getMediaType() {
        return mediaType;
    }

    public void setMediaType(String mediaType) {
        this.mediaType = mediaType;
    }

    public Protocol getProtocol() {
        return protocol;
    }

    public void setProtocol(Protocol protocol) {
        this.protocol = protocol;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public HashMap<String, String> getHeaderMap() {
        return headerMap;
    }

    public String getFormatJson() {
        return formatJson;
    }

    public void setFormatJson(String formatJson) {
        this.formatJson = formatJson;
    }

    @Override
    public String toString() {
        return "BaseResponse{" +
                "code=" + code +
                ", headerMap=" + headerMap +
                ", formatJson='" + formatJson + '\'' +
                '}';
    }
}
